﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopOnlineTimesOnDay")]
    public class OnlineTimesOnDay : BaseObject
    {
        //begin
        public OnlineTimesOnDay()
        {}
        public OnlineTimesOnDay(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private DateTime _OnlineDate;
        public DateTime OnlineDate
        {
            get
            {
                return _OnlineDate;
            }
            set
            {
                SetPropertyValue("OnlineDate", ref _OnlineDate, value);
            }
        }
        [Association("OnlineTimesOnDayOnlineTimeByIds", typeof(OnlineTimeById)), Aggregated]
        public XPCollection<OnlineTimeById> OnlineTimeByIds
        {
            get
            {
                return GetCollection<OnlineTimeById>("OnlineTimeByIds");
            }
        }
        //end
    }
}
